<div ng-controller="OrderCtrl" ng-init="deliveryAction()" class="sui-form form-horizontal">
    <ul class="sui-breadcrumb">
        <li><a href="#/order/list">{{'Order'| translate}}</a></li>
        <li class="active">{{'订单发货' | translate}}</li>
    </ul>
    <div class="control-group">
        <label class="control-label v-top">{{'store'| translate}}：</label>
        <div class="controls">
            <store-list ng-model="order.store_id" stype="1"></store-list>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label v-top"> {{'Orderid'| translate}}：</label>
        <div class="controls">
            <div class="zTreeDemoBackground">
                {{order.order_id}}
            </div>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label v-top"> {{'total_payment'| translate}}：</label>
        <div class="controls">
            {{order.total_fee}}
        </div>
    </div>
    <div class="control-group">
        <label class="control-label v-top"> {{'支付金额'| translate}}：</label>
        <div class="controls">
            {{order.payment}}
        </div>
    </div>
    <div class="control-group">
        <label class="control-label v-top"> {{'Payment'| translate}}：</label>
        <div class="controls">
            {{order.payment_no}}
        </div>
    </div>
    <div class="control-group">
        <label class="control-label v-top"> {{'time'| translate}}：</label>
        <div class="controls">
            {{order.created_at}}
        </div>
    </div>
    <div class="control-group" ng-show="order.deliver_name">
        <label class="control-label v-top"> {{'deliver_name'| translate}}：</label>
        <div class="controls">
            {{order.deliver_name}}
        </div>
    </div>
    <div class="control-group" ng-show="order.deliver_phone">
        <label class="control-label v-top"> {{'deliver_phone'| translate}}：</label>
        <div class="controls">
            {{order.deliver_phone}}
        </div>
    </div>
    <div class="control-group" ng-show="order.deliver_address">
        <label class="control-label v-top"> {{'deliver_address'| translate}}：</label>
        <div class="controls">
            {{order.province}} {{order.city}} {{order.district}} {{order.deliver_address}}
        </div>
    </div>
    <div class="control-group">
        <label class="control-label v-top"> {{'Item'| translate}}：</label>
        <div class="controls">
            <table class="sui-table table-bordered" ng-show="order.items[0]" style="margin-bottom: 5px;">
                <thead>
                    <tr>
                        <th>{{'goods_no'| translate}}</th>
                        <th>{{'total_payment'| translate}}</th>
                        <th>{{'num'| translate}}</th>
                        <th>{{'sku_id'| translate}}</th>
                        <th>{{'time'| translate}}</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="sku in order.items">
                        <td>
                            {{sku.item_id}}
                        </td>
                        <td>
                            {{sku.fee}}
                        </td>
                        <td>
                            {{sku.quantity}}
                        </td>
                        <td>
                            {{sku.sku_id}}
                        </td>
                        <td>
                            {{sku.update_time}}
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label v-top"> {{'express_corp'| translate}}：</label>
        <div class="controls">
            <carryway-type ng-model="order.shipping_corp" dft="1"></carryway-type>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label v-top"> {{'Expressid'| translate}}：</label>
        <div class="controls">
            <input ng-model="order.shipping_code">
        </div>
    </div>
    <div class="control-group">
        <label class="control-label v-top"> </label>
        <div class="controls">
            <button ng-click="updateOrder()" ng-show="order.status == 'S_ORDER_WAIT_DELIVERY'||order.status=='S_ORDER_WAIT_RECEIVE' " class="sui-btn btn-success" ng-disabled="!(order.shipping_corp &&  order.shipping_code)">订单发货</button>
            <button ng-click="updateOrder(1)" ng-show="order.status == 'S_ORDER_WAIT_DELIVERY' " class="sui-btn btn-success">无物流发货</button>
        </div>
    </div>
    <!-- 后续使用 在打开 <div class="control-group">
        <label class="control-label v-top"> </label>
        <div class="controls">
            <wx-logistic order-id="order.order_id" ></wx-logistic>
        </div>
    </div> -->
</div>